package com.ruoyi.web.domain.mes;

import java.math.BigDecimal;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料管理对象 mes_material
 *
 * @author levicash
 * @date 2024-01-10
 */
@Data
public class MesMaterial extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    private Long id;

    /**
     * 物料编号
     */
    @Excel(name = "物料编号")
    private String code;

    /**
     * 物料名称
     */
    @Excel(name = "物料名称")
    private String name;

    /**
     * 物料全称
     */
    @Excel(name = "物料全称")
    private String fullName;

    /**
     * 物料品牌
     */
    @Excel(name = "物料品牌", combo = {"品牌1", "品牌2"}, readConverterExp = "1=品牌1,2=品牌2")
    private String brand;

    /**
     * 计量单位
     */
    @Excel(name = "计量单位", combo = {"米", "千克"}, readConverterExp = "1=米,2=千克")
    private String unit;

    /**
     * 所属分类
     */
    @Excel(name = "所属分类编号")
    private String belongClass;

    /**
     * 自有编码
     */
    @Excel(name = "自有编码")
    private String originalCode;

    /**
     * 规格型号
     */
    @Excel(name = "规格型号")
    private String specs;

    /**
     * 采购专员编码
     */
    @Excel(name = "采购专员编码")
    private String buyerCode;

    /**
     * 采购专员
     */
    @Excel(name = "采购专员")
    private String buyerName;

    /**
     * 克重
     */
    @Excel(name = "克重")
    private BigDecimal weight;

    /**
     * 长度
     */
    @Excel(name = "长度")
    private Integer longWide;

    /**
     * 宽度
     */
    @Excel(name = "宽度")
    private Integer wide;

    /**
     * 高度
     */
    @Excel(name = "高度")
    private Integer height;

    /**
     * 实时单价
     */
    @Excel(name = "实时单价")
    private BigDecimal realtimePrice;

    /**
     * 加权单价
     */
    @Excel(name = "加权单价")
    private BigDecimal authorityPrice;

    /**
     * 库存数量
     */
    @Excel(name = "库存数量")
    private BigDecimal quantity;

    /**
     * 库存金额
     */
    @Excel(name = "库存金额")
    private BigDecimal stockPrice;

    /**
     * 安全库存
     */
    @Excel(name = "安全库存")
    private BigDecimal safetyStock;

    /**
     * 最低库存
     */
    @Excel(name = "最低库存")
    private BigDecimal minStock;

    /**
     * 最高库存
     */
    @Excel(name = "最高库存")
    private BigDecimal maxStock;

    /**
     * 最初库存
     */
    @Excel(name = "最初库存")
    private BigDecimal originalStock;

    /**
     * 所属仓库
     */
    @Excel(name = "所属仓库")
    private String store;

    /**
     * 状态
     */
    @Excel(name = "状态", combo = {"启用", "停用"}, readConverterExp = "0=启用,1=停用")
    private Integer status;

    /**
     * 所属分类名称
     */
    private String belongClassName;

    /**
     * 父级id
     */
    private Long pid;

    /**
     * 库存加减标识 1:加 2:减
     */
    private Integer quantitymark;


}
